package ftdpc.annotation;

import ftdpc.application.DispatchTaskController;
import ftdpc.application.IDispatchTaskController;
import ftdpc.centre.DispatchTaskControllerConfig;
import ftdpc.centre.DispatchTaskControllerRegistrar;
import ftdpc.centre.DispatchTaskManagerCentre;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 注解描述:  启动任务调度服务
 *
 * @author 王雷
 * @version 1.0.0
 * @date 2021/1/19 0019 下午 4:13
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Import({DispatchTaskManagerCentre.class, DispatchTaskControllerRegistrar.class, DispatchTaskControllerConfig.class})
public @interface EnableDispatchTask {

    /**
     * 功能描述：任务处理交互对象
     * @date : 2022/9/13 0013 下午 3:07
     */
    Class<? extends IDispatchTaskController> taskController() default DispatchTaskController.class;
}
